namespace BLL.Classes
{
    using System.Web.UI;
    using System.Collections;
    public class CategoryCollection : IHierarchicalEnumerable
    {
        private IList _categoryList = null;

        public CategoryCollection(IList categoryList)
        {
            this._categoryList = categoryList;
        }

        public IHierarchyData GetHierarchyData(object o)
        {
            return new CategoryData((Category)o);
        }

        public IEnumerator GetEnumerator()
        {
            return _categoryList.GetEnumerator();
        }
    }
}
